<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>index</title>
</head>
<body>
    <!--text 是进行转义的
    utext 则不会进行转义
    -->
    <div th:text="${msg}"></div>
    <div th:utext="${msg}"></div>
    <hr/>
    <!--foreach循环-->
    <div th:each="user:${users}" th:text="${user}"></div>
</body>
</html>